package com.byxy.luntan.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.byxy.luntan.dao.ForumDao;
import com.byxy.luntan.entity.Forum;
import com.byxy.luntan.service.ForumService;
@Service//业务类
//@Repository//Dao类
//@Component//通用类
//@Controller //控制类
//@Configuration //配置类

@Transactional
public class ForumServiceImpl implements ForumService {

	@Resource
	private ForumDao forumDao;
	
	
	@Override
	public List<Forum> findAll() {
		// TODO Auto-generated method stub
		return forumDao.find();
	}
		
	

}
